/*****************************************************************************
 * Copyright (C) Stacy Curl. All rights reserved.                            *
 * ------------------------------------------------------------------------- *
 * The software in this package is published under the terms of the BSD      *
 * style license a copy of which has been included with this distribution in *
 * the LICENSE.txt file.                                                     *
 *****************************************************************************/
package picounit.features.static_mocking;

import picounit.features.Feature;
import picounit.features.base.FeatureRegistry;
import picounit.features.classloader.PicoUnitClassLoader;
import picounit.features.generic_return_type.CheckCastRegistry;
import picounit.features.mocking.TypeFactory;

public class StaticMockingFeature implements Feature {
	private final PicoUnitClassLoader picoUnitClassLoader;
	private final CheckCastRegistry checkCastRegistry;
	private final TypeFactory typeFactory;

	public StaticMockingFeature(PicoUnitClassLoader picoUnitClassLoader,
		CheckCastRegistry checkCastRegistry, TypeFactory typeFactory) {

		this.picoUnitClassLoader = picoUnitClassLoader;
		this.checkCastRegistry = checkCastRegistry;
		this.typeFactory = typeFactory;
	}

	public void addFeatures(FeatureRegistry featureRegistry) {
		InjectorImpl.configure(picoUnitClassLoader, checkCastRegistry, typeFactory);
	}
}
